package cn.oop.map;

import java.util.HashMap;
import java.util.Map;

public class TestMap {
    public static void main(String[] args) {
        Map map = new HashMap();
        map.put("heb", new Wife("高圆圆"));
        map.put("zz", new Wife("dong"));

        Wife wife = (Wife) map.get("heb");

        map.remove("heb");

        System.out.println(wife.name);

    }
}

class Wife {
    String name;

    public Wife(String name) {
        this.name = name;
    }
}
